﻿<?php
$v_record_id = 0;
if(isset($_REQUEST['hdn_record_id'])){
	$v_record_id = intval($_REQUEST['hdn_record_id']);
}
//Luu trang ngay tiep nhan hien thoi
if(isset($_REQUEST['hdn_received_date_filter'])){
	$v_receive_date_filter = $_REQUEST['hdn_received_date_filter'];
}

#DINHNQ REMMED - DATE: 24/05/07
# Content: In noi dung phieu trinh ky
/*
if(isset($_REQUEST['hdn_record_id_list'])){
	$v_record_id = intval($_REQUEST['hdn_record_id_list']);
}
//Luu trang ngay tiep nhan hien thoi
if(isset($_REQUEST['hdn_recordtype_filter'])){
	$v_recordtype_filter = $_REQUEST['hdn_recordtype_filter'];
}
*/
if(_is_sqlserver()){//CSDL MSSQL 
	// Lay noi dung cua mot ho so
	$sql = "Exec Onegate_RecordGetSingle " . $v_record_id ;
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_single_record = $ado_conn->GetRow($sql); 
	$arr_single_record[C_RECEIVED_RECORD_XML_DATA] = stripslashes($arr_single_record[C_RECEIVED_RECORD_XML_DATA]);
	$arr_single_record[C_LICENSE_XML_DATA] = stripslashes($arr_single_record[C_LICENSE_XML_DATA]);

	// Lay thong tin file anh
	session_start();
	$_SESSION['v_record_id_session'] = $v_record_id;
	if($v_record_id > 0){
		$sql = "Exec Onegate_RecordAttachFileGetAll " . $v_record_id ;
		$arr_all_attach_file = _adodb_query_data_in_name_mode($sql);
		$_SESSION['arr_attach'] = $arr_all_attach_file;
		//$_SESSION['v_record_id_session'] = $v_record_id;
	}
}
?>